// 封装所有搜索的接口
import request from '@/utils/request.js'

export const getSearchSuggestion = (q) => {
  return request({
    method: 'GET',
    url: '/v1_0/suggestion',
    params: {
      q
    }
  })
}

/**
 *
 * @param {*} params
 * @returns
 */
export const getSearchResults = params => {
  return request({
    method: 'GET',
    url: '/v1_0/search',
    params
  })
}
